﻿using MongoDB.Driver;
using System.Security.Authentication;
using System.Xml.Xsl;

namespace english_sentences.Repository
{
    public class Repository
    {
      private readonly  string connectionString =  @"mongodb://englishsentences-server:ok17RCPQHEWB4QKbP0lzflHFKGX3EAau7UElIIbg6wnyA8opps74exnarguGyTzNuKs5WhxKF3dDACDbvDcjlA==@englishsentences-server.mongo.cosmos.azure.com:10255/?ssl=true&retrywrites=false&replicaSet=globaldb&maxIdleTimeMS=120000&appName=@englishsentences-server@";

        public Repository()
        {
            MongoClientSettings settings = MongoClientSettings.FromUrl(
                   new MongoUrl(connectionString)
                 );
            settings.SslSettings = new SslSettings() { EnabledSslProtocols = SslProtocols.Tls12 };
            var mongoClient = new MongoClient(settings);
        }
     
    }
}
